package com.ysx.role;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * @author 黄后林
 * @version 1.0
 * @date 2021-11-23 09:21:12
 */
@RestController
public class RoleController {

    /**
     * 方法描述:  http://localhost:8080/hello
     * @author: 黄后林
     * @date: 2021/11/23 9:22
     * @param
     * @return java.util.Map
     */
    @RequestMapping("hello")
    public Map<String, Object> hello(){
        Map<String,Object> rs = new HashMap<>();
        rs.put("code",200);
        rs.put("message","success");
        return rs;
    }
}
